import store from '@/store'
export default function setViewTitle(tempRoute,tempTitle) {
    const title = tempRoute.meta.title+"-"+tempTitle
    const route = Object.assign({}, tempRoute, {title})
    //设置浏览器Title
    document.title = title
    //设置TagsViewTitle
    store.dispatch('tagsView/updateVisitedView', route)
}
